package com.caosong.raptor.blog.article.proto;

import java.util.concurrent.CompletableFuture;
import java.util.concurrent.atomic.AtomicBoolean;

public interface HelloRpcService {

    static final String JAVA_SERVICE_NAME = "com.caosong.raptor.blog.article.proto.HelloRpcService";
    static final String SERVICE_NAME = "helloworld.HelloRpcService";

    // FIXME, initialize Dubbo3 stub when interface loaded, thinking of new ways doing this.
    static final boolean inited = HelloRpcServiceDubbo.init();

    com.caosong.raptor.blog.article.proto.HelloReply helloService(com.caosong.raptor.blog.article.proto.HelloRequest request);

    default CompletableFuture<com.caosong.raptor.blog.article.proto.HelloReply> helloServiceAsync(com.caosong.raptor.blog.article.proto.HelloRequest request){
        return CompletableFuture.supplyAsync(() -> helloService(request));
    }




}
